import request from '@/utils/request'

export function getOrderList(params) {
  return request({
    url: '/ops/orders/list',
    method: 'get',
    params
  })
}
export function getBscOrderList(tenantId) {
  return request({
    url: '/ops/order/getOrdersByTenantId',
    method: 'get',
    params: { tenantId: tenantId }
  })
}
export function getBscOrderDetailList(orderId) {
  return request({
    url: '/ops/orderDetail/getOrderDetailsByOrderId',
    method: 'get',
    params: { orderId: orderId }
  })
}

export function updateDiscount(data) {
  return request({
    url: '/ops/orders/update',
    method: 'post',
    data
  })
}

export function getOrderLogList(id) {
  return request({
    url: '/ops/orderLog/getByOrderId',
    method: 'get',
    params: { orderId: id }
  })
}
